package com.enjoyor.soa.traffic.api.dto.efoms;

import java.io.Serializable;
import java.util.List;

import com.enjoyor.soa.traffic.util.bean.base.ABean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * ping结果消息Dto
 * @ClassNamePingResultPojo
 * @Description TODO
 * @Author fzj
 * @Date 2019/3/13
 * @Version 1.0
 **/
@ApiModel(value = "PingResultDto", description = "ping结果消息Dto")
public class PingResultDto implements Serializable{
	
	private static final long serialVersionUID = 8146524011311235663L;
	
	@ApiModelProperty(value = "设备类别编号", name="pingRealId",  required = true)
    private String devCategoryCode;
    
	@ApiModelProperty(value = "设备类型编号", name="devTypeCode",  required = true)
    private String devTypeCode;
    
	@ApiModelProperty(value = "设备编号", name="devId",  required = true)
    private String devId;
    
	@ApiModelProperty(value = "设备名称", name="devName",  required = true)
    private String devName;

	@ApiModelProperty(value = "设备状态", name="devStatus",  required = true)
    private String devStatus;
	
	@ApiModelProperty(value = "设备IP", name="IP",  required = true)
    private String IP;
	
	@ApiModelProperty(value = "发送包数", name="times",  required = true)
    private int times = 0;
    
	@ApiModelProperty(value = "超时时间", name="timeout",  required = true)
    private int timeout;
    
	@ApiModelProperty(value = "丢包率", name="lossPacketRate",  required = true)
    private double lossPacketRate;
    
	@ApiModelProperty(value = "平均响应时间", name="avgTime",  required = true)
    private int avgTime;
    
	@ApiModelProperty(value = "ping返回结果", name="pingResult",  required = true)
    private List<String> pingResult;

    public PingResultDto() {
    }

    public PingResultDto(String IP, int times, int timeout) {
        this.IP = IP;
        this.times = times;
        this.timeout = timeout;
    }

    public PingResultDto(String IP, int times, int timeout, List<String> pingResult) {
        this.IP = IP;
        this.times = times;
        this.timeout = timeout;
        this.pingResult = pingResult;
    }

    public String getDevCategoryCode() {
		return devCategoryCode;
	}

	public void setDevCategoryCode(String devCategoryCode) {
		this.devCategoryCode = devCategoryCode;
	}

	public String getDevTypeCode() {
		return devTypeCode;
	}

	public void setDevTypeCode(String devTypeCode) {
		this.devTypeCode = devTypeCode;
	}

	public String getDevId() {
		return devId;
	}

	public void setDevId(String devId) {
		this.devId = devId;
	}

	public String getDevName() {
		return devName;
	}

	public void setDevName(String devName) {
		this.devName = devName;
	}

	public String getDevStatus() {
		return devStatus;
	}

	public void setDevStatus(String devStatus) {
		this.devStatus = devStatus;
	}

	public String getIP() {
        return IP;
    }

    public void setIP(String IP) {
        this.IP = IP;
    }

    public int getTimes() {
        return times;
    }

    public void setTimes(int times) {
        this.times = times;
    }

    public int getTimeout() {
        return timeout;
    }

    public void setTimeout(int timeout) {
        this.timeout = timeout;
    }

    public List<String> getPingResult() {
        return pingResult;
    }

    public void setPingResult(List<String> pingResult) {
        this.pingResult = pingResult;
    }

    public double getLossPacketRate() {
		return lossPacketRate;
	}

	public void setLossPacketRate(double lossPacketRate) {
		this.lossPacketRate = lossPacketRate;
	}
	
    public int getAvgTime() {
        return avgTime;
    }

    public void setAvgTime(int avgTime) {
        this.avgTime = avgTime;
    }

    /*@Override
    public String toString() {
        return "PingResultDto{" +
                "IP='" + IP + '\'' +
                ", devId=" + devId +
                ", times=" + times +
                ", timeout=" + timeout +
                ", lossPacketRate=" + lossPacketRate +
                ", avgTime=" + avgTime +
                ", pingResult=" + pingResult +
                '}';
    }*/
}
